const saRoutes = [
  {
    path: "/sysAdmin/dictSetting",
    component: () => import("@/views/sys-admin/dict/Index.vue"),
    meta: {
      menuId: "7-1",
      menuName: "字典设置",
    },
  },
  {
    path: "/sysAdmin/dictTypeDetail/:dictId(\\d+)", // (\\d+) 表示 dictId 必须是一个或多个数字
    component: () => import("@/views/sys-admin/dict/Data.vue"),
    meta: {
      menuId: "7-1-1",
      menuName: "字典详情",
    },
  },
  {
    path: "/sysAdmin/userSetting",
    component: () => import("@/views/sys-admin/user/Index.vue"),
    meta: {
      menuId: "7-2",
      menuName: "用户管理",
    },
  },
  {
    path: "/sysAdmin/roleSetting",
    component: () => import("@/views/sys-admin/role/Index.vue"),
    meta: {
      menuId: "7-3",
      menuName: "角色管理",
    },
    children: [
      // {
      //   path: "authUser/:roleId(\\d+)", // 这里动态路由需要一个或多个连续数字
      //   component: () => import("@/views/sys-admin/role/AuthUser.vue"),
      //   name: "AuthUser",
      //   meta: { title: "分配用户", activeMenu: "/sysAdmin/roleSetting" },
      // },
    ],
  },
  {
    path: "/sysAdmin/roleSetting/authUser/:roleId(\\d+)", // 这里动态路由需要一个或多个连续数字
    component: () => import("@/views/sys-admin/role/AuthUser.vue"),
    name: "AuthUser",
    meta: { title: "分配用户", activeMenu: "/sysAdmin/roleSetting" },
  },
  {
    path: "/sysAdmin/menuSetting",
    component: () => import("@/views/sys-admin/menu/Index.vue"),
    meta: {
      menuId: "7-4",
      menuName: "菜单管理",
    },
  },
  {
    path: "/sysAdmin/deptSetting",
    component: () => import("@/views/sys-admin/dept/Index.vue"),
    meta: {
      menuId: "7-5",
      menuName: "部门管理",
    },
  },
];
export default saRoutes;
